package com.meituan.mapper;

import com.meituan.model.ReplyEntity;
import com.meituan.provider.ReplyProvider;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;


public interface ReplyMapper {

    @InsertProvider(type = ReplyProvider.class,method = "insert")
    @Options(useGeneratedKeys = true,keyProperty = "replyId",keyColumn = "reply_id")
    Integer Insert(ReplyEntity replyEntity);

    @Select("select * from reply where evaluation_id = #{evaluationId}")
    ReplyEntity findByEvaluationId(String evaluationId );
}
